package com.gdufe.mistakebook.service;

import com.gdufe.mistakebook.entity.Label;
import com.gdufe.mistakebook.entity.dto.LabelDto;
import com.gdufe.mistakebook.result.PageResult;

import java.util.List;
import java.util.Map;

/**
* @author hoshino
* @description 针对表【label】的数据库操作Service
* @createDate 2024-03-20 13:20:18
*/
public interface LabelService {





    /**
     * 条件分页查询
     *
     * @param params
     * @return
     */
    PageResult pageQuestions(Map<String, String> params);

    void updateLabel(Label label);



    void deleteLabel(Integer id);

    List<Map<String, String>> getLabelNameId(int userId);

    Label getLabelById(Integer id);

    void insertLabel(LabelDto labelDto);
}
